$(function () {
    layui.use(['form'], function () {
        var form = layui.form
            , layer = layui.layer

        //监听录像下载配置
        form.on('select(lxxzpz)', function (data) {
            //选择不下载，隐藏IIS虚拟路径标签
            if (data.value == "0") {
                $("#zdfwqdzDiv").hide();
            } else {
                $("#zdfwqdzDiv").show(); //选择下载，展示IIS虚拟路径标签
            }
        });

        //监听提交
        form.on('submit(subInit)', function (data) {
            $.ajax({
                type: "POST",
                data: data.field,
                url: ctxPath + "system/organization/organInfo",
                success:function (data) {
                    layer.alert(data.message)
                    location.reload();
                }
            });
            return false;
        });
    });
})